<?php

namespace CMBUBank\UBank\Response\TransManager;

use CMBUBank\Http\Response;
use CMBUBank\UBank\Response\UBankBaseResponse;

class TransManagerSubunitPaymentResponse extends UBankBaseResponse
{
    protected $responseCode = ['ntoprrtnz'];

    protected $isFinish;

    protected function format(): Response
    {
        return parent::formatLimit1();
    }

    public function checkFinish()
    {
        if (!in_array($this->requestStatus, ['FIN', 'BNK', 'NPD', 'NTE'])) {
            $this->isFinish = false;
            return;
        }

        $this->isFinish = true;
    }

    public function getIsFinish()
    {
        return $this->isFinish;
    }

    public function getResultInfo()
    {
        return $this->bussList;
    }
}